<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>地震局培训平台</title>
		<link rel="stylesheet" href="style/main.css" />
		<link rel="stylesheet" href="style/newsList.css" />
	</head>

	<body>
		<div id="info">
			<div class="info">
				<div class="newsbox">
					<!--消息滚动-->
					<div class="news nowrap">消息：欢迎加入地震应急志愿者培训平台，您是第123456位访问用户。</div>
				</div>
				<div class="infobox">
					<div class="name nowrap">zhangming</div>
					<div class="info_id nowrap">N.8784547</div>
					<div class="sign_out">退出</div>
				</div>
				<div class="leave_m">互动留言</div>
			</div>
		</div>
		<div id="show">
			<nav id="nav">
				<div class="top">
					<div class="logo"></div>
					<div class="seachbox">
						<input type="text" id="search" value="在线课堂搜索" />
						<div class="weibo codeIcon">
							<div class="first">
								<img src="image/weiboCode.png" />
							</div>
						</div>
						<div class="weixin codeIcon">
							<div class="first">
								<img src="image/weixinCode.png" />
							</div>
						</div>
					</div>
				</div>
				<div class="border">
					<ul class="nav">
						<li data-url="index">首页</li>
						<li class="in" data-url="news">新闻资讯</li>
						<!--<li data-url="story">志愿故事</li>-->
						<li class="team">志愿品牌
							<div class="first">
								<div data-url="story">志愿故事</div>
								<div data-url="team">志愿团体</div>
								<div data-url="star">志愿之星</div>
							</div>
						</li>
						<!--<li data-url="project">志愿项目</li>
						<li data-url="star">志愿之星</li>-->
						<li data-url="train">培训平台</li>
						<li data-url="policy">志愿政策</li>
					</ul>
				</div>
			</nav>
			<div id="content">
				<div class="left">
					<div class="border"></div>
					<div class="title"><img class="news_img" src="" /></div>
					<ul class="list" id="listall">
						<!-- <li class="box">
							<div class="text">陆士桢：发展中国特色志愿服务，促进社会文明进步	陆士桢：发展中国特色志愿服务，促进社会文明进步</div>
							<div class="time">2017-09-08</div>
						</li> -->
						
					</ul>
					<div class="pagebox">
						<div class="pageborder"></div>
						<div class="numbox">
							<div class="page">1</div>
							<div class="page in">2</div>
							<div class="page">3</div>
						</div>
					</div>
				</div>
				<div class="right">
					<div class="border"></div>
					<div class="title"></div>
					<ul class="list">
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
						<li>
							<div class="text">肖金明：《志愿服务条例》的立法创新与多重效应</div>
						</li>
					</ul>
				</div>
			</div>
		</div>
		<div id="bottom">
			<ul class="border">
				<li>相关协作单位：</li>
				<li>中国地震信息网</li>
				<li>中国地震科普网</li>
				<li>北京市地震局科普网 </li>
				<li>科普网</li>
			</ul>
			<div class="bottom">
				<ul class="one">
					<li>设为首页</li>
					<li>交换链接</li>
					<li>关于我们</li>
					<li>联系我们</li>
					<li>常见问题</li>
					<li>心理教室</li>
					<li>党团建设</li>
				</ul>
				<ul class="two">
					<li>主办：北京市地震局</li>
					<li>版权所有 京ICP备08988239</li>
					<li>技术支持：中宣助力传媒</li>
				</ul>
			</div>
			<script type="text/javascript" src="script/jquery.min.js"></script>
			<script type="text/javascript" src="script/ishoock.tools.js"></script>
			<script type="text/javascript" src="script/main.js"></script>
			<script type="text/javascript" src="script/common.js"></script>
			<script>
				$(".list>*").on("click",function(){
					window.location.href="details.html";
				});
				$(".list li").on("mouseover", function() {
					$(this).in();
				});
				$(".list li").on("mouseleave", function() {
					$(".list li").removeIn();
				});
				
				//获取更多新闻数据
				var turl = decodeURI(window.location.href);
				var Id = getUrlParam("id", turl);
				if(Id == 8){
					$('.news_img').attr('src','image/n_title5.png')
				}else if(Id == 9){
					$('.news_img').attr('src','image/n_title2.png')
				}else if(Id == 10){
					$('.news_img').attr('src','image/n_title3.png')
				}else if(Id == 11){
					$('.news_img').attr('src','image/n_title4.png')
				}
				$.ajax({
					type: "GET",
					url: host +"news/getNewsInfo?newsType="+Id,
					dataType: "json",
					success: function(data){
						
						$.each(data.result,function(index,item){
							var createDate = item.createDate.substr(0, 10)
							
							$('#listall').append('<li>'+
														'<input type="hidden" value="'+item.id+'" class="Id">'+
														'<div class="text nowrap">'+item.title+'</div>'+
														'<div class="time">'+createDate+'</div>'+
													'</li> ')
													
						})
						
						$("#listall").on("click","li", function () {
							var Id = $(this).children('.Id').val();
							window.location.href = "details.html?id="+Id;
						});
						
						
						
					},
				})
				
				
			</script>
	</body>

</html>